﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UPNP.IO.ValueConverters
{
    internal sealed class DeviceUInt4Converter : IDeviceValueConverter
    {
        public Type ManagedType
        {
            get { return typeof(UInt32); }
        }

        public object FromDevice(string value)
        {
            return Convert.ToUInt32(value);
        }

        public string ToDevice(object value)
        {
            return Convert.ToString(Convert.ToUInt32(value));
        }
    }
}
